package com.example.elasticsearch.po;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class CoordinatePo implements Serializable {

	static final long serialVersionUID = -5878516819156424618L;

	/**
	 * 纬度
	 */
	@Field(type = FieldType.Float)
	BigDecimal lat;

	/**
	 * 经度
	 */
	@Field(type = FieldType.Float)
	BigDecimal lon;

}
